package com.course.component.exceptions;
/*
@author By 林中小鸟
@package  com.self.introduction.component.exceptions
@create 2021 - 11 - 2021\11\26 0026
@QQ: 357182695
@Em: themooncss@gmail.com
*/

public class FileException extends RuntimeException{
    private Integer code;
    private String message;
    private Object data;

    public FileException(Integer code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public FileException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public Object getData() {
        return data;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "JwtException{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
